import { useAgvApi } from "../api/agv";
import { Local } from "../utils/storage";


export default async function initMap() {
    if (Local.get('tt15_map') !== null) return;
    // 巡检AGV初始化
    const res = await useAgvApi().getAgvMap({
        map_type: 'new',
    });
    Local.set('tt15_map', res.data.data);
}